//
//  DMDiagnosticV.m
//  CQKuaiYi
//
//  Created by 何典钊 on 2017/1/9.
//  Copyright © 2017年 Mr.Cannon. All rights reserved.
//

#import "DMDiagnosticV.h"

@implementation DMDiagnosticV

- (void)setReceiving_setting_extra:(NSString *)receiving_setting_extra{
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 80)];
    
    label.numberOfLines = 0;
    label.text = receiving_setting_extra;
    [self addSubview:label];
    
}

- (void)setReceiving_settings:(NSArray *)receiving_settings {
    
    //    NSMutableString *strM = [NSMutableString string];
    NSString *strM = [receiving_settings componentsJoinedByString:@" "];
    NSLog(@"%@",strM);
    UILabel *label = [[UILabel alloc] init];
    label.numberOfLines = 0;
    label.text = strM;
    [self addSubview:label];
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(80);
        make.left.equalTo(self);
        make.right.equalTo(self).offset(-285);
        make.height.offset(130);
    }];
}

@end
